package com.shiguiwu.springboot3.starter.service;

import com.shiguiwu.springboot3.starter.property.MyProperties;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * @description: 服务对象
 * @author: stone
 * @date: Created by 2023/7/8 23:15
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springboot3.starter.service
 */
@Data
@NoArgsConstructor
public class MyService {

    private MyProperties myProperties;

    private String name ;

    private boolean flag;

    private List<String> list;

    private Map<String, Object> map;

    public MyService(MyProperties myProperties) {
        this.myProperties = myProperties;
        this.flag = myProperties.isFlag();
        this.map = myProperties.getMap();
        this.list = myProperties.getList();
        this.name = myProperties.getName();
        
    }
}
